home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1996 #14 / Monster Media No. 14 (April 1996) (Monster Media, Inc.).ISO / prog_d / qrep097a.zip / MDREP.DFM / MDREP.txt < prev   
Text File  |  1996-01-13  |  16KB  |  743 lines

  1. object MDForm: TMDForm
  2.   Left = 307
  3.   Top = 376
  4.   Width = 818
  5.   Height = 437
  6.   HorzScrollBar.Range = 1200
  7.   VertScrollBar.Range = 2000
  8.   AutoScroll = False
  9.   Caption = 'Master Detail demo Report'
  10.   Font.Color = clBlack
  11.   Font.Height = -13
  12.   Font.Name = 'Arial'
  13.   Font.Style = []
  14.   PixelsPerInch = 96
  15.   ShowHint = True
  16.   TextHeight = 16
  17.   object Title: TQRBand
  18.     Left = 0
  19.     Top = 0
  20.     Width = 1200
  21.     Height = 47
  22.     Align = alTop
  23.     BandType = rbTitle
  24.     Color = clWhite
  25.     Font.Color = clNavy
  26.     Font.Height = -15
  27.     Font.Name = 'Arial'
  28.     Font.Style = []
  29.     ForceNewPage = False
  30.     Frame.Width = 0
  31.     Ruler = qrrInchesHV
  32.     object QRLabel15: TQRLabel
  33.       Left = 96
  34.       Top = 5
  35.       width = 216
  36.       height = 41
  37.       Caption = 'QuickReport'
  38.       AlignToBand = False
  39.       Font.Color = 8404992
  40.       Font.Height = -36
  41.       Font.Name = 'Arial'
  42.       Font.Style = [fsBold, fsItalic]
  43.     end
  44.     object Image1: TImage
  45.       Left = 9
  46.       Top = 5
  47.       Width = 79
  48.       Height = 37
  49.       Picture.Data = {<image000.bmp>}
  50.       Stretch = True
  51.     end
  52.     object QRLabel1: TQRLabel
  53.       Left = 329
  54.       Top = 23
  55.       width = 69
  56.       height = 17
  57.       Caption = 'for Delphi'
  58.       AlignToBand = False
  59.       Font.Color = 8404992
  60.       Font.Height = -15
  61.       Font.Name = 'Arial'
  62.       Font.Style = [fsBold, fsItalic]
  63.     end
  64.     object QRLabel16: TQRLabel
  65.       Left = 441
  66.       Top = 23
  67.       width = 291
  68.       height = 17
  69.       Caption = 'Copyright (c) 1996 Allan Lochert / QSD as'
  70.       AlignToBand = False
  71.       Font.Color = clBlack
  72.       Font.Height = -15
  73.       Font.Name = 'Arial'
  74.       Font.Style = [fsBold, fsItalic]
  75.     end
  76.   end
  77.   object CustomerHeading: TQRBand
  78.     Left = 0
  79.     Top = 47
  80.     Width = 1200
  81.     Height = 41
  82.     Align = alTop
  83.     BandType = rbDetail
  84.     Color = 8404992
  85.     ForceNewPage = True
  86.     Frame.Width = 0
  87.     Ruler = qrrNone
  88.     object QRDBText1: TQRDBText
  89.       Left = 9
  90.       Top = 14
  91.       width = 257
  92.       height = 19
  93.       DataSource = CustomerDS
  94.       DataField = 'Company'
  95.       Font.Color = clWhite
  96.       Font.Height = -19
  97.       Font.Name = 'Arial'
  98.       Font.Style = [fsBold, fsItalic]
  99.     end
  100.     object QRLabel3: TQRLabel
  101.       Left = 9
  102.       Top = 0
  103.       width = 55
  104.       height = 15
  105.       Caption = 'Customer'
  106.       AlignToBand = False
  107.       Font.Color = clWhite
  108.       Font.Height = -12
  109.       Font.Name = 'Arial'
  110.       Font.Style = []
  111.     end
  112.     object QRLabel4: TQRLabel
  113.       Left = 273
  114.       Top = 0
  115.       width = 36
  116.       height = 15
  117.       Alignment = taRightJustify
  118.       Caption = 'Phone'
  119.       AlignToBand = False
  120.       Font.Color = clWhite
  121.       Font.Height = -12
  122.       Font.Name = 'Arial'
  123.       Font.Style = []
  124.     end
  125.     object QRDBText3: TQRDBText
  126.       Left = 274
  127.       Top = 14
  128.       width = 139
  129.       height = 19
  130.       DataSource = CustomerDS
  131.       DataField = 'Phone'
  132.       Font.Color = clWhite
  133.       Font.Height = -19
  134.       Font.Name = 'Arial'
  135.       Font.Style = [fsBold, fsItalic]
  136.     end
  137.     object QRDBText4: TQRDBText
  138.       Left = 73
  139.       Top = 0
  140.       width = 29
  141.       height = 15
  142.       Alignment = taRightJustify
  143.       DataSource = CustomerDS
  144.       DataField = 'CustNo'
  145.       Font.Color = clWhite
  146.       Font.Height = -12
  147.       Font.Name = 'Arial'
  148.       Font.Style = []
  149.     end
  150.     object QRLabel5: TQRLabel
  151.       Left = 416
  152.       Top = 0
  153.       width = 19
  154.       height = 15
  155.       Caption = 'Fax'
  156.       AlignToBand = False
  157.       Font.Color = clWhite
  158.       Font.Height = -12
  159.       Font.Name = 'Arial'
  160.       Font.Style = []
  161.     end
  162.     object QRDBText5: TQRDBText
  163.       Left = 416
  164.       Top = 14
  165.       width = 134
  166.       height = 19
  167.       DataSource = CustomerDS
  168.       DataField = 'Fax'
  169.       Font.Color = clWhite
  170.       Font.Height = -19
  171.       Font.Name = 'Arial'
  172.       Font.Style = [fsBold, fsItalic]
  173.     end
  174.   end
  175.   object CustomerFooter: TQRBand
  176.     Left = 0
  177.     Top = 161
  178.     Width = 1200
  179.     Height = 22
  180.     Align = alTop
  181.     BandType = rbGroupFooter
  182.     Color = clWhite
  183.     ForceNewPage = False
  184.     Frame.Width = 0
  185.     Ruler = qrrNone
  186.     object QRDBCalc1: TQRDBCalc
  187.       Left = 524
  188.       Top = 1
  189.       width = 93
  190.       height = 19
  191.       Alignment = taRightJustify
  192.       DataSource = OrderDS
  193.       DataField = 'AmountPaid'
  194.       Operation = qrcSUM
  195.       PrintMask = '#,##0.00'
  196.       ResetBand = CustomerFooter
  197.     end
  198.     object QRLabel7: TQRLabel
  199.       Left = 353
  200.       Top = 1
  201.       width = 154
  202.       height = 16
  203.       Caption = 'Total sales this customer: '
  204.       AlignToBand = False
  205.     end
  206.     object QRDBCalc3: TQRDBCalc
  207.       Left = 208
  208.       Top = 4
  209.       width = 65
  210.       height = 17
  211.       Alignment = taRightJustify
  212.       DataSource = OrderDS
  213.       DataField = 'CustNo'
  214.       Operation = qrcCOUNT
  215.       ResetBand = CustomerFooter
  216.     end
  217.   end
  218.   object PageFooter: TQRBand
  219.     Left = 0
  220.     Top = 230
  221.     Width = 1200
  222.     Height = 22
  223.     Align = alTop
  224.     BandType = rbPageFooter
  225.     Color = clWhite
  226.     ForceNewPage = False
  227.     Frame.Width = 0
  228.     Ruler = qrrNone
  229.     object QRLabel8: TQRLabel
  230.       Left = 5
  231.       Top = 5
  232.       width = 238
  233.       height = 15
  234.       Caption = 'QuickReport is copyright 1995 Allan Lochert'
  235.       AlignToBand = False
  236.       Font.Color = clBlack
  237.       Font.Height = -12
  238.       Font.Name = 'Arial'
  239.       Font.Style = []
  240.     end
  241.     object QRSysData1: TQRSysData
  242.       Left = 667
  243.       Top = 0
  244.       width = 91
  245.       height = 18
  246.       Alignment = taRightJustify
  247.       AlignToBand = True
  248.       AutoSize = False
  249.       Data = qrsPageNumber
  250.       Text = 'Page '
  251.     end
  252.   end
  253.   object Summary: TQRBand
  254.     Left = 0
  255.     Top = 183
  256.     Width = 1200
  257.     Height = 47
  258.     Hint = 'QuickReport'
  259.     Align = alTop
  260.     BandType = rbSummary
  261.     Color = clWhite
  262.     ForceNewPage = False
  263.     Frame.Width = 0
  264.     Ruler = qrrNone
  265.     object QRSysData2: TQRSysData
  266.       Left = 522
  267.       Top = 14
  268.       width = 225
  269.       height = 18
  270.       AlignToBand = False
  271.       AutoSize = False
  272.       Data = qrsDetailCount
  273.       Font.Color = clBlack
  274.       Font.Height = -15
  275.       Font.Name = 'Arial'
  276.       Font.Style = [fsBold]
  277.       Text = 'Total number of orders : '
  278.     end
  279.     object QRDBCalc2: TQRDBCalc
  280.       Left = 366
  281.       Top = 14
  282.       width = 120
  283.       height = 19
  284.       Alignment = taRightJustify
  285.       DataSource = OrderDS
  286.       DataField = 'AmountPaid'
  287.       Font.Color = clBlack
  288.       Font.Height = -15
  289.       Font.Name = 'Arial'
  290.       Font.Style = [fsBold]
  291.       Operation = qrcSUM
  292.       PrintMask = ',0.00'
  293.     end
  294.     object QRLabel6: TQRLabel
  295.       Left = 123
  296.       Top = 14
  297.       width = 183
  298.       height = 18
  299.       Caption = 'Total sales all customers :'
  300.       AlignToBand = False
  301.       Font.Color = clBlack
  302.       Font.Height = -15
  303.       Font.Name = 'Arial'
  304.       Font.Style = [fsBold]
  305.     end
  306.   end
  307.   object OrderDetail: TQRBand
  308.     Left = 0
  309.     Top = 88
  310.     Width = 1200
  311.     Height = 33
  312.     Align = alTop
  313.     BandType = rbSubDetail
  314.     Color = clWhite
  315.     ForceNewPage = False
  316.     Frame.Width = 0
  317.     Ruler = qrrNone
  318.     object QRDBText2: TQRDBText
  319.       Left = 69
  320.       Top = 0
  321.       width = 51
  322.       height = 19
  323.       Alignment = taRightJustify
  324.       DataSource = OrderDS
  325.       DataField = 'OrderNo'
  326.     end
  327.     object QRDBText7: TQRDBText
  328.       Left = 192
  329.       Top = 0
  330.       width = 74
  331.       height = 19
  332.       DataSource = OrderDS
  333.       DataField = 'SaleDate'
  334.     end
  335.     object QRLabel2: TQRLabel
  336.       Left = 9
  337.       Top = 0
  338.       width = 64
  339.       height = 18
  340.       Caption = 'Order no'
  341.       AlignToBand = False
  342.       Font.Color = clBlack
  343.       Font.Height = -15
  344.       Font.Name = 'Arial'
  345.       Font.Style = [fsBold]
  346.     end
  347.     object QRLabel9: TQRLabel
  348.       Left = 137
  349.       Top = 0
  350.       width = 33
  351.       height = 18
  352.       Caption = 'Date'
  353.       AlignToBand = False
  354.       Font.Color = clBlack
  355.       Font.Height = -15
  356.       Font.Name = 'Arial'
  357.       Font.Style = [fsBold]
  358.     end
  359.     object QRLabel10: TQRLabel
  360.       Left = 72
  361.       Top = 16
  362.       width = 31
  363.       height = 14
  364.       Caption = 'Partno'
  365.       AlignToBand = False
  366.       Font.Color = clBlack
  367.       Font.Height = -11
  368.       Font.Name = 'Arial'
  369.       Font.Style = []
  370.     end
  371.     object QRLabel11: TQRLabel
  372.       Left = 128
  373.       Top = 16
  374.       width = 54
  375.       height = 14
  376.       Caption = 'Description'
  377.       AlignToBand = False
  378.       Font.Color = clBlack
  379.       Font.Height = -11
  380.       Font.Name = 'Arial'
  381.       Font.Style = []
  382.     end
  383.     object QRLabel12: TQRLabel
  384.       Left = 428
  385.       Top = 16
  386.       width = 24
  387.       height = 14
  388.       Caption = 'Price'
  389.       AlignToBand = False
  390.       Font.Color = clBlack
  391.       Font.Height = -11
  392.       Font.Name = 'Arial'
  393.       Font.Style = []
  394.     end
  395.     object QRLabel13: TQRLabel
  396.       Left = 488
  397.       Top = 16
  398.       width = 17
  399.       height = 14
  400.       Caption = 'Qty'
  401.       AlignToBand = False
  402.       Font.Color = clBlack
  403.       Font.Height = -11
  404.       Font.Name = 'Arial'
  405.       Font.Style = []
  406.     end
  407.     object QRLabel14: TQRLabel
  408.       Left = 592
  409.       Top = 16
  410.       width = 23
  411.       height = 14
  412.       Caption = 'Total'
  413.       AlignToBand = False
  414.       Font.Color = clBlack
  415.       Font.Height = -11
  416.       Font.Name = 'Arial'
  417.       Font.Style = []
  418.     end
  419.     object QRShape1: TQRShape
  420.       Left = 184
  421.       Top = 24
  422.       width = 193
  423.       Height = 1
  424.       Shape = qrsHorLine
  425.     end
  426.     object QRShape2: TQRShape
  427.       Left = 392
  428.       Top = 24
  429.       width = 33
  430.       Height = 1
  431.       Shape = qrsHorLine
  432.     end
  433.     object QRShape3: TQRShape
  434.       Left = 468
  435.       Top = 24
  436.       width = 17
  437.       Height = 1
  438.       Shape = qrsHorLine
  439.     end
  440.     object QRShape4: TQRShape
  441.       Left = 528
  442.       Top = 24
  443.       width = 61
  444.       Height = 1
  445.       Shape = qrsHorLine
  446.     end
  447.     object QRShape5: TQRShape
  448.       Left = 53
  449.       Top = 24
  450.       width = 16
  451.       Height = 1
  452.       Shape = qrsHorLine
  453.     end
  454.   end
  455.   object ItemsDetail: TQRBand
  456.     Left = 0
  457.     Top = 121
  458.     Width = 1200
  459.     Height = 19
  460.     AfterPrint = ItemsDetailAfterPrint
  461.     Align = alTop
  462.     BandType = rbSubDetail
  463.     BeforePrint = ItemsDetailBeforePrint
  464.     Color = clWhite
  465.     ForceNewPage = False
  466.     Frame.Width = 0
  467.     Ruler = qrrNone
  468.     object QRDBText8: TQRDBText
  469.       Left = 110
  470.       Top = 24
  471.       width = 239
  472.       height = 19
  473.       DataSource = PartsDS
  474.       DataField = 'Description'
  475.     end
  476.     object QRDBText6: TQRDBText
  477.       Left = 27
  478.       Top = 0
  479.       width = 75
  480.       height = 19
  481.       Alignment = taRightJustify
  482.       DataSource = ItemsDS
  483.       DataField = 'PartNo'
  484.     end
  485.     object QRDBText9: TQRDBText
  486.       Left = 361
  487.       Top = 0
  488.       width = 92
  489.       height = 19
  490.       Alignment = taRightJustify
  491.       DataSource = PartsDS
  492.       DataField = 'ListPrice'
  493.     end
  494.     object QRDBText10: TQRDBText
  495.       Left = 457
  496.       Top = 0
  497.       width = 47
  498.       height = 19
  499.       Alignment = taRightJustify
  500.       DataSource = ItemsDS
  501.       DataField = 'Qty'
  502.     end
  503.     object QRDBText11: TQRDBText
  504.       Left = 528
  505.       Top = 0
  506.       width = 89
  507.       height = 17
  508.       Alignment = taRightJustify
  509.       DataSource = ItemsDS
  510.       DataField = 'TotalAmount'
  511.     end
  512.     object QRDBText12: TQRDBText
  513.       Left = 128
  514.       Top = 0
  515.       width = 241
  516.       height = 17
  517.       DataSource = PartsDS
  518.       DataField = 'Description'
  519.     end
  520.   end
  521.   object OrderFooter: TQRBand
  522.     Left = 0
  523.     Top = 140
  524.     Width = 1200
  525.     Height = 21
  526.     Align = alTop
  527.     BandType = rbGroupFooter
  528.     Color = clWhite
  529.     ForceNewPage = False
  530.     Frame.Width = 0
  531.     Ruler = qrrNone
  532.     object QRLabel17: TQRLabel
  533.       Left = 380
  534.       Top = 0
  535.       width = 125
  536.       height = 16
  537.       Caption = 'Total sales this order:'
  538.       AlignToBand = False
  539.     end
  540.     object QRShape6: TQRShape
  541.       Left = 128
  542.       Top = 8
  543.       width = 249
  544.       Height = 1
  545.       Shape = qrsHorLine
  546.     end
  547.     object QRDBText13: TQRDBText
  548.       Left = 524
  549.       Top = 0
  550.       width = 93
  551.       height = 17
  552.       Alignment = taRightJustify
  553.       DataSource = OrderDS
  554.       DataField = 'AmountPaid'
  555.     end
  556.   end
  557.   object MDRep: TQuickReport
  558.     DataSource = CustomerDS
  559.     ColumnMarginInches = 0
  560.     ColumnMarginMM = 0
  561.     Columns = 1
  562.     DisplayPrintDialog = False
  563.     LeftMarginInches = 0
  564.     LeftMarginMM = 0
  565.     Orientation = poPortrait
  566.     PrintOrder = qrColByCol
  567.     ReportTitle = 'QuickReport Master/detail demonstration'
  568.     RestartData = True
  569.     SQLCompatible = False
  570.     TitleBeforeHeader = False
  571.     Left = 4
  572.     Top = 224
  573.   end
  574.   object CustomerTable: TTable
  575.     Active = True
  576.     DatabaseName = 'DBDEMOS'
  577.     IndexFieldNames = 'Company'
  578.     TableName = 'CUSTOMER.DB'
  579.     Left = 36
  580.     Top = 224
  581.     object CustomerTableCustNo: TFloatField
  582.       FieldName = 'CustNo'
  583.     end
  584.     object CustomerTableCompany: TStringField
  585.       FieldName = 'Company'
  586.       Size = 30
  587.     end
  588.     object CustomerTablePhone: TStringField
  589.       FieldName = 'Phone'
  590.       Size = 15
  591.     end
  592.     object CustomerTableFAX: TStringField
  593.       FieldName = 'FAX'
  594.       Size = 15
  595.     end
  596.     object CustomerTableContact: TStringField
  597.       FieldName = 'Contact'
  598.     end
  599.   end
  600.   object OrdersTable: TTable
  601.     Active = True
  602.     DatabaseName = 'DBDEMOS'
  603.     IndexFieldNames = 'CustNo'
  604.     MasterFields = 'CustNo'
  605.     MasterSource = CustomerDS
  606.     TableName = 'ORDERS.DB'
  607.     Left = 44
  608.     Top = 260
  609.     object OrdersTableOrderNo: TFloatField
  610.       FieldName = 'OrderNo'
  611.     end
  612.     object OrdersTableSaleDate: TDateTimeField
  613.       FieldName = 'SaleDate'
  614.     end
  615.     object OrdersTableItemsTotal: TCurrencyField
  616.       FieldName = 'ItemsTotal'
  617.       Currency = True
  618.     end
  619.     object OrdersTableTaxRate: TFloatField
  620.       FieldName = 'TaxRate'
  621.     end
  622.     object OrdersTableFreight: TCurrencyField
  623.       FieldName = 'Freight'
  624.       Currency = True
  625.     end
  626.     object OrdersTableAmountPaid: TCurrencyField
  627.       FieldName = 'AmountPaid'
  628.       Currency = True
  629.     end
  630.     object OrdersTableCustNo: TFloatField
  631.       FieldName = 'CustNo'
  632.       Required = True
  633.     end
  634.   end
  635.   object CustomerDS: TDataSource
  636.     DataSet = CustomerTable
  637.     Left = 68
  638.     Top = 224
  639.   end
  640.   object OrderDS: TDataSource
  641.     DataSet = OrdersTable
  642.     Left = 76
  643.     Top = 260
  644.   end
  645.   object QRDetailLink1: TQRDetailLink
  646.     DataSource = OrderDS
  647.     DetailBand = OrderDetail
  648.     FooterBand = CustomerFooter
  649.     Master = MDRep
  650.     PrintBefore = False
  651.     Left = 12
  652.     Top = 260
  653.   end
  654.   object QRDetailLink2: TQRDetailLink
  655.     DataSource = ItemsDS
  656.     DetailBand = ItemsDetail
  657.     FooterBand = OrderFooter
  658.     Master = QRDetailLink1
  659.     PrintBefore = False
  660.     Left = 24
  661.     Top = 296
  662.   end
  663.   object ItemsTable: TTable
  664.     Active = True
  665.     DatabaseName = 'DBDEMOS'
  666.     IndexFieldNames = 'OrderNo'
  667.     MasterFields = 'OrderNo'
  668.     MasterSource = OrderDS
  669.     TableName = 'ITEMS.DB'
  670.     Left = 56
  671.     Top = 296
  672.     object ItemsTableOrderNo: TFloatField
  673.       FieldName = 'OrderNo'
  674.     end
  675.     object ItemsTableItemNo: TFloatField
  676.       FieldName = 'ItemNo'
  677.     end
  678.     object ItemsTablePartNo: TFloatField
  679.       FieldName = 'PartNo'
  680.     end
  681.     object ItemsTableQty: TIntegerField
  682.       FieldName = 'Qty'
  683.     end
  684.     object ItemsTableDiscount: TFloatField
  685.       FieldName = 'Discount'
  686.     end
  687.     object ItemsTableTotal: TCurrencyField
  688.       Calculated = True
  689.       FieldName = 'Total'
  690.       Currency = True
  691.     end
  692.     object ItemsTableTotalAmount: TCurrencyField
  693.       Calculated = True
  694.       FieldName = 'TotalAmount'
  695.       Currency = True
  696.     end
  697.   end
  698.   object ItemsDS: TDataSource
  699.     DataSet = ItemsTable
  700.     Left = 88
  701.     Top = 296
  702.   end
  703.   object PartsTable: TTable
  704.     Active = True
  705.     DatabaseName = 'DBDEMOS'
  706.     IndexFieldNames = 'PartNo'
  707.     MasterFields = 'PartNo'
  708.     MasterSource = ItemsDS
  709.     TableName = 'PARTS.DB'
  710.     Left = 64
  711.     Top = 332
  712.     object PartsTablePartNo: TFloatField
  713.       FieldName = 'PartNo'
  714.     end
  715.     object PartsTableVendorNo: TFloatField
  716.       FieldName = 'VendorNo'
  717.     end
  718.     object PartsTableDescription: TStringField
  719.       FieldName = 'Description'
  720.       Size = 30
  721.     end
  722.     object PartsTableOnHand: TFloatField
  723.       FieldName = 'OnHand'
  724.     end
  725.     object PartsTableOnOrder: TFloatField
  726.       FieldName = 'OnOrder'
  727.     end
  728.     object PartsTableCost: TCurrencyField
  729.       FieldName = 'Cost'
  730.       Currency = True
  731.     end
  732.     object PartsTableListPrice: TCurrencyField
  733.       FieldName = 'ListPrice'
  734.       Currency = True
  735.     end
  736.   end
  737.   object PartsDS: TDataSource
  738.     DataSet = PartsTable
  739.     Left = 96
  740.     Top = 332
  741.   end
  742. end
  743.